package demo.spring.ioc.services;

import demo.spring.ioc.dao.JpaAccountDao;
import demo.spring.ioc.dao.JpaItemDao;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lushun.chen on 2017/3/25.
 *
 * @author lushun.chen
 */
public class PetStoreServiceImpl implements PetStoreService {

    private JpaAccountDao accountDao;

    private JpaItemDao itemDao;

    public void setAccountDao(JpaAccountDao accountDao) {
        this.accountDao = accountDao;
    }

    public void setItemDao(JpaItemDao itemDao) {
        this.itemDao = itemDao;
    }

    @Override
    public List<String> getUsernameList() {
        List<String> user=new ArrayList<>();
        user.add("陈录顺");
        user.add("张三");
        user.add("胡杰");
        return user;
    }
}
